package emulator.unittest.util;

import static org.junit.Assert.*;

import java.nio.ByteBuffer;

import org.junit.Test;

import emulator.util.ByteBufferReader;

public class ByteBufferReaderTest {

	@Test
	public void testToStringByteBuffer() {
		ByteBuffer buffer = ByteBuffer.allocate(10);
		buffer.clear();
		buffer.put("1234".getBytes());
		buffer.flip();
		assertEquals("1234", ByteBufferReader.toString(buffer));
	}

}
